package com.notes.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.hibernate.annotations.GenericGenerator;

@Entity
public class Item {
	private int itemId;
	private String text;
	private String deleteIndicator;
	private String completeIndicator;
	private String date;
	private User user;
	private Date remindTime;
	
	@Id
	@GenericGenerator(name="item",strategy="increment")
	@GeneratedValue(generator="item")
	@Column(name = "itemId", unique = true, nullable = false, precision = 15, scale = 0)
	public int getItemId() {
		return itemId;
	}
	public void setItemId(int itemId) {
		this.itemId = itemId;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getDeleteIndicator() {
		return deleteIndicator;
	}
	public void setDeleteIndicator(String deleteIndicator) {
		this.deleteIndicator = deleteIndicator;
	}
	public String getCompleteIndicator() {
		return completeIndicator;
	}
	public void setCompleteIndicator(String completeIndicator) {
		this.completeIndicator = completeIndicator;
	}

	@ManyToOne
	@JoinColumn(name="userId")
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Column(name="itemDate")
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public Date getRemindTime() {
		return remindTime;
	}
	public void setRemindTime(Date remindTime) {
		this.remindTime = remindTime;
	}





	
	
		
}
